package main;

import inventory.view.InventoryDriver;
import inventory.view.InventoryDriverHelper;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.UIManager;

import dbhandelling.Connections;

public class Main 
{
	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		Connections con=new Connections();
		
		EventQueue.invokeLater(new Runnable() 
		{
			public void run() 
			{
				try 
				{
					UIManager.setLookAndFeel(
					        UIManager.getSystemLookAndFeelClassName());
					
					JFrame frame = new InventoryDriver();
					InventoryDriverHelper helper=new InventoryDriverHelper((InventoryDriver) frame);
					
					frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
					
					frame.setVisible(true);
					frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
				} 
				catch (Exception e) 
				{
					e.printStackTrace();
				}
			}
		});

	}

}
